import request from '@/utils/request.js'
import * as REQUEST from './index';
const key = 'move';

export function save(query) {
    return REQUEST.postRequest(`/api/${key}/save`, query)
}

export function list(query) {
    return REQUEST.postRequest(`/api/${key}/listData`, query)
}

export function edit(query) {
    return REQUEST.postRequest(`/api/${key}/update`, query)
}

export function detail(query) {
	return request.get({
		url: `/material/v3/api/${key}/queryByMoveId`,
		params: { moveId: query }
	});
    // return REQUEST.getRequest(`/api/${key}/queryByMoveId`, query);
}

export function getNo() {
    return REQUEST.getRequest(`/api/${key}/no`);
}

export function updateStockInfo(query) {
    return REQUEST.postRequest(`/api/${key}/updateStockInfo`, query)
}

export function saveItemList(query) {
    return REQUEST.postRequest(`/api/${key}/saveItemList`, query)
}